<?php

require_once(DIR_LIB."vslibdef.php");

if(!defined('DIR_LIB_VSCORE'))
	define('DIR_LIB_VSCORE', DIR_LIB."VsCore".DIR_SEP);

if(!defined('DIR_LIB_VSSHOP'))
	define('DIR_LIB_VSSHOP', DIR_LIB."VsShop".DIR_SEP);

require_once(DIR_LIB_VSCORE."vsapplication.php");

require_once(DIR_LIB_VSSHOP."vsproduct_factory.php");


class VsShoppingCartItem {

	private $_product = NULL;	// VsProduct Object
	private $_qty = 0;

	function VsShoppingCartItem($productId, $qty) {
		$productFactory = VsProductFactory::Instance();
		$this->_product = $productFactory->makeProduct($productId);
		$this->_qty = $qty;
	}
	//==============================================================================

	function productId() {
		return $this->_product->id();
	}
	//==============================================================================

	function productName() {
		return $this->_product->name();
	}
	//==============================================================================

	function qty() {
		return $this->_qty;
	}
	//=============================================================================

};


?>
